package com.ruoyi.lxy.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户业务对象 t_user
 *
 * @author ruoyi
 * @date 2023-08-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TUserBo extends BaseEntity {

    /**
     * 用户：职工
     */
    @NotNull(message = "用户:职工不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 职工号
     */
    @NotBlank(message = "职工号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String zgh;

    /**
     * 电话
     */
    @NotBlank(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 身份证
     */
    @NotBlank(message = "身份证不能为空", groups = { AddGroup.class, EditGroup.class })
    private String idcard;


}
